package com.iplatform.file.function.resourcedata.dao;


import com.iplatform.file.function.resourcedata.entity.FileBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @className: FileDao
 * @description: TODO 类描述
 * @author: chensk
 * @date: 2020/12/3
 **/
@Mapper
public interface FileDao {

    int insert(FileBean fileBean);
    
    
    int countByParentIdAndFilePathAndFileName(FileBean fileBean);

    List<FileBean> selectByCondition(@Param("parentId") Long parentId,@Param("fileName") String fileName);

    FileBean selectDatabyId (Long id);
    
    int deleteById(Long id);

    Integer newInsert(FileBean fileBean);
}
